import {_decorator, Component, Label} from 'cc';
import Long from "long";
import {TalentHeadComp} from "db://assets/script/game/mainui/talent-head-comp";

const {ccclass, property} = _decorator;

@ccclass('TalentHeadCompWithName')
export class TalentHeadCompWithName extends Component {
    @property(TalentHeadComp)
    head!: TalentHeadComp;

    @property(Label)
    nameLabel!: Label


    start() {

    }

    setHead(id: Long, gender: number, talent: number, masterId: string, name: string) {
        this.head.setHead(id, gender, talent, masterId)
        this.nameLabel.string = name
    }

    update(deltaTime: number) {

    }
}


